package org.dei.perla.sys.device.fpc.MPPT.datastructures;

import org.dei.perla.utils.dataconverter.annotations.SimpleField;
import org.dei.perla.utils.dataconverter.annotations.StructInfo;
import org.dei.perla.utils.dataconverter.enums.Endianness;
import org.dei.perla.utils.dataconverter.enums.Sign;

@StructInfo(endianness = Endianness.LITTLE_ENDIAN, totalStructSize = 16)
public class MpptData {	

	@SimpleField(size = 8, sign = Sign.UNSIGNED)
	private long timestamp;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int panelVoltage;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int panelCurrent;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int batteryVoltage;

	@SimpleField(size = 1, sign = Sign.UNSIGNED)
	private int flags;

	@SimpleField(size = 1, sign = Sign.UNSIGNED)
	private int pad;
	
	public int getFlags() {
		return flags;
	}
	public void setFlags(int flags) {
		this.flags = flags;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public int getPanelVoltage() {
		return panelVoltage;
	}
	public void setPanelVoltage(int panelVoltage) {
		this.panelVoltage = panelVoltage;
	}
	public int getPanelCurrent() {
		return panelCurrent;
	}
	public void setPanelCurrent(int panelCurrent) {
		this.panelCurrent = panelCurrent;
	}
	public int getBatteryVoltage() {
		return batteryVoltage;
	}
	public void setBatteryVoltage(int batteryVoltage) {
		this.batteryVoltage = batteryVoltage;
	}
	public int getPad() {
		return pad;
	}
	public void setPad(int pad) {
		this.pad = pad;
	}

	
}
